package com.order.distribute.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.order.distribute.service.DistributeService;
import com.order.distribute.uitl.BaseRespons;

import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

@RestController
@RequestMapping("/distribute")
@Slf4j
public class DistributeController {
	
	 @Autowired private DistributeService distributeService;
	@ApiOperation(value = "派单信息")
	@PostMapping("/saveDistribute")
	public BaseRespons saveDistribute(String  orderNo) {
		BaseRespons b =distributeService.saveDistribute(orderNo);
		return b;
	}
}
